import request from '@/utils/request'

// 查询通用考核列表
export function listActive(query) {
  return request({
    url: '/examine/active/list',
    method: 'get',
    params: query
  })
}

// 查询考评接口
export function listEvaluate(query) {
  return request({
    url: '/examine/active/evaluateList',
    method: 'get',
    params: query
  })
}

// 查询通用考核详细
export function getActive(id) {
  return request({
    url: '/examine/active/' + id,
    method: 'get'
  })
}

// 新增通用考核
export function addActive(data) {
  return request({
    url: '/examine/active',
    method: 'post',
    data: data
  })
}

// 修改通用考核
export function updateActive(data) {
  return request({
    url: '/examine/active',
    method: 'put',
    data: data
  })
}

// 删除通用考核
export function delActive(id) {
  return request({
    url: '/examine/active/' + id,
    method: 'delete'
  })
}

// 查询活动选择列表接口
export function listPick(query) {
  return request({
    url: '/examine/active/pickList',
    method: 'get',
    params: query
  })
}

